home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
shadow-i.002
/
shadow-i
/
shadow-ina-box-1.1
/
Install
< prev
next >
Wrap
Text File
|
1996-07-30
|
10KB
|
335 lines
#! /bin/sh
#
# Original install bash script done by Simone Chemelli <genius@dei.unipd.it>
# 21/04/1996
#
# Script and package modifications done by Michael Quan <michael@envy.com>
# June 13th, 1996
#
# Lines needed in order to modify 2 files ( /etc/inetd.conf and
# /usr/X11R6/lib/X11/config/linux.cf ) to allow shadow correct compiling.
#
echo "Modifying your /etc/inetd.conf for the new ftpd, pop3d, and xlockmore."
echo "You may wish to verify the resulting /etc/inetd.conf as"
echo "/etc/inetd.conf.orig"
echo
gcc -O2 modify.c -o modify
modify
#
# Lets now install the cracklib library from ftp.cert.org
# md5sum = 47dd534919d034893ba25501e8bbf57d cracklib25_small.tar.Z
# There is no official md5sum from cert for this package. I've created it
# here locally. You should verify for yourself. -Michael"
#
md5sum cracklib25_small.tar.Z
echo
echo "There is no official md5sum from cert for this package. I've created it"
echo "here locally. You should verify for yourself."
echo
tar -xzf cracklib25_small.tar.Z
echo "Moving the big dictionary file to /usr/local/lib directory"
cp -f ./extras/pw_dict /usr/local/lib
touch /usr/dict/words
echo
echo "Creating libcrack.a"
echo
cd ./cracklib25_small
make all
make install
echo "Moving libcrack.a to /usr/lib"
echo
mv -f ./cracklib/libcrack.a /usr/lib/
cd ../
#
# Lines needed by shadow-960129.tar.gz from sunsite.unc.edu
# md5sum = 45dd0995bb27ca4fd4dd4c866a15e095 shadow-960129.tar.gz
# There is no official md5sum from sunsite.unc.edu for this package.
# I've created it here locally. You should verify for yourself.
# -Michael
#
md5sum shadow-960129.tar.gz
echo
echo "There is no official md5sum from sunsite.unc.edu for this package."
echo "I've created it here locally. You should verify for yourself."
echo
tar -xzf shadow-960129.tar.gz
echo "Performing a few patches to enable libcrack.a and Linux release changes."
echo
cd ./shadow-960129
cp -f Makefile.linux Makefile
patch Makefile ../extras/Makefileshadow.patch
cp -f config.h.linux config.h
patch config.h ../extras/config.patch
patch login.defs.linux ../extras/login.defs.patch
mv -f login.defs.linux /etc/login.defs
ln -s /usr/include/pwd.h pwd.h
touch /etc/gshadow
make all
make install
/usr/sbin/pwconv
mv ./npasswd /etc/passwd
mv ./nshadow /etc/shadow
chmod a+r,og-w /etc/passwd*
chmod o-r,og-w /etc/shadow*
touch /var/adm/lastlog
touch /var/adm/ftmp
touch /var/adm/faillog
touch /var/adm/sulog
cd ../
echo
#
# Lines needed by wu-ftpd-2.4-fixed.tar.gz
# md5sum = d6462af01cc4c19d50565dff0d7b6515 wu-ftpd-2.4-fixed.tar.gz
# check against the checksums of sunsite.unc.edu under
# pub/Linux/system/Network/file-transfer/wu-ftpd-2.4-CHECKSUMS
md5sum wu-ftpd-2.4-fixed.tar.gz
echo
echo "Check against the checksum value provided in the sunsite.unc.edu"
echo "distribution for security peace of mind"
echo
tar -xzf wu-ftpd-2.4-fixed.tar.gz
cd ./wu-ftpd-2.4-fixed
echo "Creating <in_system.h> link as needed for wu-ftpd-2.4 package"
ln -sf /usr/include/netinet/in_systm.h /usr/include/netinet/in_system.h
echo
echo "Enabling shadow passwords"
patch ./src/makefiles/Makefile.lnx ../extras/Makeftpsrc.patch
echo "Setting up ftp run directory."
mkdir /usr/adm/ftpd
echo "Building the ftpd binaries"
build lnx
echo
echo "Stripping the ftpd binaries"
strip ./bin/*
echo
echo "Performing a patch to ensure ftpd goes to /usr/sbin."
echo
patch Makefile ../extras/Makeftp.patch
build install
echo
cd ../
# ** I see no reason for the below - Michael
#----
# Next lines are for users using CSH as default shell.
# Comment them if you don't have csh and tcsh installed on your system.
#cat /etc/shells > /tmp/shells.tmp
#echo "/bin/csh" >> /tmp/shells.tmp
#cat /tmp/shells |sort |uniq > /tmp/shells
#mv /tmp/shells /etc
#ln -sf /bin/tcsh /bin/csh
#----
#
# Lines needed by xlockmore-3.9.tar.gz from ftp.x.org
# md5sum = 368dab072738f765896d6ce805d777e0 xlockmore-3.9.tar.gz
# There is no official md5sum from ftp.x.org. I've created it here
# locally. You should verify for yourself. -Michael
#
md5sum xlockmore-3.9.tar.gz
echo
echo "There is no official md5sum from ftp.x.org. I've created it here"
echo "locally. You should verify for yourself."
echo
tar -xzf xlockmore-3.9.tar.gz
cd ./xlockmore-3.9/
echo "Performing a patch to enable shadow passwords and -lshadow."
echo "Assuming you are using an ELF system. Else, you must link with -lgdbm"
echo
patch Makefile.std ../extras/Makexlock.patch
mv -f Makefile.std Makefile
xmkmf
make depend
make
strip ./xlock
chmod 4755 ./xlock
make install
echo
cd ../
#
# Lines needed by xdm.tar.gz from sunsite.unc.edu
# md5sum = 8b4bc8d70b686d112524b245b067eb78 xdm.tar.gz
# There is no official md5sum from sunsite.unc.edu or the original
# creator for this package. I've created it here locally. You should
# verify for yourself. -Michael
#
md5sum xdm.tar.gz
echo "There is no official md5sum from sunsite.unc.edu or the original"
echo "creator for this package. I've created it here locally. You should"
echo "verify for yourself."
echo
tar -xzf xdm.tar.gz
cd ./xdm
xmkmf
make depend
make
strip ./xdm
mv -f /usr/X11R6/bin/xdm /usr/X11R6/bin/xdm.old
cp -f xdm /usr/X11R6/bin/
cp -f xdm.man /usr/local/man/man1/xdm.1
echo
cd ..
#
# Lines needed by sudo-1.2-shadow.tgz from sunsite.unc.edu
# md5sum = fd2657e05002c4f6fa1026ddfe428685 sudo-1.2-shadow.tgz
# There is no official md5sum from sunsite.unc.edu or the original
# creator for this package. I've created it here locally. You should
# verify for yourself. -Michael
#
echo
md5sum sudo-1.2-shadow.tgz
echo "There is no official md5sum from sunsite.unc.edu or the original"
echo "creator for this package. I've created it here locally. You should"
echo "verify for yourself."
echo
tar -xzf sudo-1.2-shadow.tgz
cd ./sudo-1.2/
echo "Enabling PARANOID settings."
echo
patch Makefile ../extras/Makefilesudo.patch
make
strip sudo.bin
make install
echo
cd ../
#
# Lines needed by adduser-shadow.pl from sunsite.unc.edu
# md5sum = eeb0231a9a4a02a591a70c5f146f4788 adduser-shadow.pl
# There is no official md5sum from sunsite.unc.edu.
# I've created it here locally. You should verify for yourself. -Michael
#
md5sum adduser-shadow.pl
echo "There is no official md5sum from sunsite.unc.edu."
echo "I've created it here locally. You should verify for yourself."
echo
echo "Moving current /sbin/adduser to /sbin/adduser.old"
mv /sbin/adduser /sbin/adduser.old
echo "Copying adduser-shadow.pl to /sbin/adduser"
cp -f ./adduser-shadow.pl /sbin/adduser
echo
#
# Lines needed by qpop2.2.tar.Z from ftp.qualcomm.com
# md5sum = 687de4aa608119ac428146dd4e206bb5 qpop2.2.tgz
# There is no official md5sum from ftp.qualcomm.com for qpop2.2.tar.Z
# I've created it here locally. You should verify for yourself. -Michael
#
md5sum qpop2.2.tgz
echo "There is no official md5sum from ftp.qualcomm.com for qpop2.2.tar.Z"
echo "I've created it here locally. You should verify for yourself."
echo
tar -xzf qpop2.2.tgz
cd ./qpopper2.2/
echo "Enabling shadow passwords, pop mail authorization file, and pop mail"
echo "bulletins. Read ./qpopper2.2/README for more information."
echo
patch make.linux ../extras/Makepop.patch
patch Makefile ../extras/MMakepop.patch
echo "Creating /usr/spool/mail/popbulletins directory."
echo
mkdir /usr/spool/mail/popbulletins
make linux
mv -f ./popper.linux /usr/sbin/popper
mv -f ./popauth /usr/sbin/
make installman
echo
cd ../
#
# Lines needed by imap-4.BETA.tar.Z from ftp.cac.washington.edu
# md5sum = c2759c725294570d027526749e0d49fe imap-4.BETA.tgz
# There is no official md5sum from ftp.cac.washington.edu for imapd
# I've created it here locally. You should verify yourself. -Michael
#
md5sum imap-4.BETA.tgz
echo "There is no official md5sum from ftp.cac.washington.edu for imapd"
echo "I've created it here locally. You should verify yourself."
echo
tar -xzf imap-4.BETA.tgz
cd ./imap-4.BETA
make slx
strip ./imapd/imapd
cp -f ./imapd/imapd /usr/sbin/in.imapd
cp -f ./src/imapd/imapd.8c /usr/local/man/man8/imapd.8
echo
cd ..
#
# Lines needed by pcnfsd.linux.tgz from sunsite.unc.edu
# md5sum = 71b81ac3eab7da778155eaaca07f4d17 pcnfsd.linux.tgz
# There is no official md5sum from SUN for pcnfsd.linux.tgz
# I've created it here locally. You should verify yourself. -Michael
#
md5sum pcnfsd.linux.tgz
echo "There is no official md5sum from SUN for pcnfsd.linux.tgz"
echo "I've created it here locally. You should verify yourself."
echo
tar -xzf pcnfsd.linux.tgz
cd ./pcnfsd
echo "Enabling shadow passwords and user cache."
echo
patch common.h ../extras/pcnfsd.patch
make linux
cp pcnfsd.8c /usr/local/man/man8/pcnfsd.8
strip ./linux/*.pcnfsd
chmod go+rx ./linux/clnt.pcnfsd
chmod o-x ./linux/rpc.pcnfsd
mv -f /usr/sbin/clnt.pcnfsd /usr/sbin/clnt.pcnfsd.old
mv -f /usr/sbin/rpc.pcnfsd /usr/sbin/rpc.pcnfsd.old
mv -f ./linux/*.pcnfsd /usr/sbin/
echo
cd ..
#
# Lines needed by bwnfsd.tar.gz from ftp.acs.com
# md5sum = 2beafd723b19775314b6f553c40caab5 bwnfsd.tar.gz
# There is no official md5sum for this package.
# I've created it here locally. You should verify yourself. -Michael
#
md5sum bwnfsd.tar.gz
echo "There is no official md5sum for this package."
echo "I've created it here locally. You should verify yourself."
echo
tar -xzf bwnfsd.tar.gz
cd ./bwnfsd
echo "Enabling shadow passwords."
echo
patch bwnfsd.c ../extras/bwnfsd.patch
patch Makefile ../extras/Makebwnfs.patch
make linux
strip bwnfsd
chmod o-x bwnfsd
mv -f /usr/sbin/rpc.bwnfsd /usr/sbin/rpc.bwnfsd.old
mv -f bwnfsd /usr/sbin/rpc.bwnfsd
echo
cd ..
# Confirm the end
echo
echo " The installation of shadow passwords suite is finished."
echo " Try it out now. "
echo
# end of script